package com.qipay.sp.excutor.fuhuipay;

import com.qipay.core.utils.SpringContextUtil;
import com.qipay.sp.excutor.AbstractExcutor;
import com.qipay.sp.excutor.ExcutorFactory;
import com.qipay.sp.excutor.aliface.AliFaceNativeExcutor;
import org.springframework.stereotype.Component;

/**
 * 付汇支付工厂类
 */
@Component
public class FuHuiFactory implements ExcutorFactory {


    @Override
    public AbstractExcutor createAlipayWapExcutor() {
        return (FuHuiWapExcutor) SpringContextUtil.getBean(FuHuiWapExcutor.class);
    }

    @Override
    public AbstractExcutor createAlipayNativeExcutor() {
        return (FuHuiNativeExcutor) SpringContextUtil.getBean(FuHuiNativeExcutor.class);
    }

}
